package com.ren.weibo.aop;

import org.springframework.stereotype.Component;

@Component
public class Calculatorimpl implements Calculator{
    @Override
    public int add(int a, int b) {
        int result = a + b;
        return result;
    }

    @Override
    public int sub(int a, int b) {

        return a - b;
    }

    @Override
    public int mul(int a, int b) {
        int res = a * b;
        System.out.println("mul");
        return res;
    }

    @Override
    public int div(int a, int b) {
        int res = a / b;
        return res;
    }
}
